package com.mt.roll.wms.params;

import com.mt.roll.core.base.BaseParam;
import com.mt.roll.core.validator.groups.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author weihongyang
 * @Date 2021/11/1 11:07 上午
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "等级信息参数对象", description = "用于新增和更新等级信息")
public class GradeInformationParam extends BaseParam {

    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键，更新时需要填写", example = "1")
    @NotNull(message = "等级信息ID不能为空", groups = {UpdateGroup.class})
    private Long id;

    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id", example = "1")
    @NotNull(message = "设备不能为空")
    private Long equipment_id;

    /**
     * 设备名
     */
    @ApiModelProperty(value = "设备名", example = "1")
    private String equipment_name;

    /**
     * 等级
     */
    @ApiModelProperty(value = "等级", example = "1")
    @NotBlank(message = "等级不能为空")
    private String grade;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", example = "1")
    private String remark;


}
